<template>
	<view class="my_sw">
		<u-swiper :list="list" @click="clickSwiper"></u-swiper>
	</view>
</template>

<script>
	export default {
		name: "ZY-Swiper",
		props: {
			list: {
				type: Array,
				default: () => [
					'https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg',
					'https://ossweb-img.qq.com/images/lol/web201310/skin/big10002.jpg'
				]
			}
		},
		data() {
			return {
		
			};
		},
		methods:{
			clickSwiper(i){
				this.$emit('clickSwiper',i)
			}
		}
	}
</script>

<style lang="scss">
.my_sw{
	padding: 20rpx;
	border-radius: 20rpx;
	overflow: hidden;
	margin-top: 10rpx;
}
</style>
